function paging(page){
    $("[name=page]").val(page);
    $("#searchForm").submit();
}
$(function(){
	$(".btn-inverse").click(function(){
		$("#page").val(1);
		$("#searchForm").submit();
	});
	
	$(".score-btn").click(function(){
		var id = $(this).attr("id");
//		var teamIds = $(this).parent().find("[name='teamIds']").val();
//		window.location.href = "/scoreManage/toUpdatePage.htm?id="+id+"&teamIds="+teamIds;
		window.location.href = "/scoreManage/toUpdatePage.htm?id="+id;
	});
	
	$(".fenbutu-btn").click(function(){
		var id = $(this).attr("id");
		window.location.href = "/shootSpot/list.htm?id="+id;
	});
	
    var options = {
            currentPage: $("[name=page]").val(),
            totalPages: $("[name=totalPage]").val(),
            alignment:"left",
            itemTexts: function (type, page, current) {
                switch (type) {
                    case "first":
                        return "首页";
                    case "prev":
                        return "上一页";
                    case "next":
                        return "下一页";
                    case "last":
                        return "末页";
                    case "page":
                        return page;
                }
            },
            pageUrl: function(type,page,current){
                return "javascript:paging('"+page+"');";
            }
        };
    $('#example').bootstrapPaginator(options);
     
});